import { legacy_createStore, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";
import rootReducer from "./reducers";
const middleware = composeWithDevTools(applyMiddleware(thunk));
const store = legacy_createStore(rootReducer, middleware);

export default store;
